package builder;

public class ConcreateBuilder implements Builder {
    private int partA;
    private String partB;
    private int partC;

    @Override
    public void buildParA(int partA) {
        this.partA = partA;
    }

    @Override
    public void buildParB(String partB) {
        this.partB = partB;
    }

    @Override
    public void buildParC(int partC) {
        this.partC = partC;
    }

    public Product getResult() {
        return new Product(partA, partB, partC);
    }
}

